package com.ssm.util;
import com.ssm.service.TeacherService;
import com.ssm.service.impl.TeacherServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Test {
    @org.junit.Test
    public void test() {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("aop.xml");
        Math math = applicationContext.getBean("math", Math.class);
        int n1 = 100, n2 = 5;
        math.add(n1, n2);
        math.subtract(n1, n2);
        math.mul(n1, n2);
        math.dev(n1, n2);
    }
}
